<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-accountAddress-edit" th:object="${accountAddress}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">钱包地址：</label>
				<div class="col-sm-8">
					<input id="walletAddress" name="walletAddress" th:field="*{walletAddress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">钱包别名：</label>
				<div class="col-sm-8">
					<input id="walletAlias" name="walletAlias" th:field="*{walletAlias}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">积分类型：</label>
				<div class="col-sm-8">
				     <select name="walletType" class="form-control m-b" th:with="type=${@dict.getType('score_type')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{walletType}" ></option>
	                </select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">余额：</label>
				<div class="col-sm-8">
					<input id="walletBalance" name="walletBalance"  th:value="${accountAddress.amount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">使用状态：</label>
				<div class="col-sm-8">
				<select name="status" class="form-control m-b" th:with="type=${@dict.getType('sys_normal_disable')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"  th:field="*{status}"  ></option>
	                </select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">钱包所在节点：</label>
				<div class="col-sm-8">
					<input id="nodeId" name="nodeId" th:field="*{nodeId}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "manager/accountAddress";
		$("#form-accountAddress-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-accountAddress-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
